﻿@model SecsaMvcApplication.Models.Consulta

@{
    ViewBag.Title = "Novo Cadastro";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<section>
    <div class="page-header">
        <h1>Consultas</h1>
        <div>
            @Html.ActionLink("Voltar para Lista", "Index")
        </div>
    </div>
<div class="row-fluid m-fluid">
    <div class="span12 m-widget">
        <div class="m-widget-body">
            @using (Html.BeginForm()) {
                @Html.ValidationSummary(true)

                <fieldset>
                    <legend>Novo Cadastro</legend>
						<div class="editor-label">
							@Html.LabelFor(model => model.Data)
						</div>
						<div class="editor-field">
							@Html.EditorFor(model => model.Data)
							@Html.ValidationMessageFor(model => model.Data)
						</div>
                    <script>
                        $(function () {
                            $("#Data").datepicker();
                        })
                    </script>

						<div class="editor-label">
							@Html.LabelFor(model => model.MedicoId, "Medico")
						</div>
						<div class="editor-field">
							@Html.DropDownList("MedicoId", String.Empty)
							@Html.ValidationMessageFor(model => model.MedicoId)
						</div>

						<div class="editor-label">
							@Html.LabelFor(model => model.PacienteId, "Paciente")
						</div>
						<div class="editor-field">
							@Html.DropDownList("PacienteId", String.Empty)
							@Html.ValidationMessageFor(model => model.PacienteId)
						</div>

						<div class="editor-label">
							@Html.LabelFor(model => model.Sintomas)
						</div>
						<div class="editor-field">
							@Html.EditorFor(model => model.Sintomas)
							@Html.ValidationMessageFor(model => model.Sintomas)
						</div>

						<div class="editor-label">
							@Html.LabelFor(model => model.Diagnostico)
						</div>
						<div class="editor-field">
							@Html.EditorFor(model => model.Diagnostico)
							@Html.ValidationMessageFor(model => model.Diagnostico)
						</div>

					<div class="form-actions">
						<button type="submit" class="btn btn-success">Concluir</button>
						@Html.ActionLink("Cancelar", "Index", new { }, new { @class = "btn" })
					</div>
				</fieldset>
			}
			</div>
		</div>
	</div>
</section>
